package com.example.mq.mqserver.core;

import java.io.Serializable;

//消息的属性
public class BasicProperties implements Serializable {
    //消息唯一ID
    private String messageId;
    private String routingKey;
    //是否持久化，1不持久化 2持久化
    private int deliveryMode=1;

    public String getMessageId() {
        return messageId;
    }

    public void setMessageId(String messageId) {
        this.messageId = messageId;
    }

    public String getRoutingKey() {
        return routingKey;
    }

    public void setRoutingKey(String routingKey) {
        this.routingKey = routingKey;
    }

    public int getDeliveryMode() {
        return deliveryMode;
    }

    public void setDeliveryMode(int deliveryMode) {
        this.deliveryMode = deliveryMode;
    }



}
